# 字典序最小
# abc
# aab
# ab
# abd
# 输出  aab